Skip to content

gh-150042: queue.SimpleQueue.put: fix minor refleak.#150043

Merged
encukou merged 2 commits into
python:mainfrom
larryhastings:polish_simplequeue_put
May 19, 2026
Merged

gh-150042: queue.SimpleQueue.put: fix minor refleak.#150043
encukou merged 2 commits into
python:mainfrom
larryhastings:polish_simplequeue_put

Conversation

@larryhastings
Copy link
Copy Markdown
Contributor

@larryhastings larryhastings commented May 19, 2026

If queue.SimpleQueue.put can't handoff the item to a waiting thread, and fails to allocate memory when adding the item to a ringbuf, it would leak a reference. Fixed.

If queue.SimpleQueue.put can't handoff the item to a
waiting thread, and fails to allocate memory when adding
the item to a ringbuf, it would leak a reference.  Fixed.
Copy link
Copy Markdown
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your attention to detail!

@encukou encukou merged commit 79088e0 into python:main May 19, 2026
59 checks passed
@encukou encukou added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 19, 2026
@miss-islington-app
Copy link
Copy Markdown

Thanks @larryhastings for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 19, 2026

GH-150127 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants